import Password from "antd/es/input/Password";
import api from "./Api";
export default {
  regist: (user) => api.post("/users", { user }),
  login: (email, password) =>
    api.post("/users/login", { user: { email, password } }),
  get: (username) => api.get("/users/" + username),
  update: (user) => api.put("/users", { user }),
  follow: (username) => api.post("/follow/" + username),
  unfollow: (username) => api.delete("/follow/" + username),
};
